package graph;

public class Circle implements Shape {
    private double radius;

    public Circle(double radius)
    {
        this.radius = radius;
    }

    @Override
    public double length()
    {
        if(radius<=0)
        {
            return 0;
        }
        return 2*3.14*radius;
    }
}
